<?php


namespace App\Aspect;


use App\Service\IndexService;
use Hyperf\Di\Aop\AbstractAspect;
use Hyperf\Di\Annotation\Aspect;
use Hyperf\Di\Aop\ProceedingJoinPoint;

/**
 * @Aspect()
 * Class IndexCoAspect
 * @package App\Aspect
 */
class IndexCoAspect extends AbstractAspect
{

    public $classes = [
        IndexService::class
    ];

    /**
     * @param ProceedingJoinPoint $proceedingJoinPoint
     * @return mixed|void
     * @throws \Hyperf\Di\Exception\Exception
     */
    public function process(ProceedingJoinPoint $proceedingJoinPoint)
    {

        echo 33;
       $result =  $proceedingJoinPoint->process();
        echo 44;

        return $result;
    }


}